package com.buddy.design.pattern._06template.cource;

public class BigDataCourse extends NetWorkCourse {

    private boolean neetHomeworkFlag = false;

    public BigDataCourse(boolean neetHomeworkFlag) {
        this.neetHomeworkFlag = neetHomeworkFlag;
    }

    @Override
    protected boolean needHomework() {
        return this.neetHomeworkFlag;
    }

    @Override
    protected void checkHomework() {
        System.out.println(">>>>检查大数据的课后作业");
    }
}
